#ifndef __SOCKETIO_H__
#define __SOCKETIO_H__
#include<string>
class SocketIO
{
public:
    explicit SocketIO(int fd);
    ~SocketIO();
    int readn(char *buf, int len);
    int readLine(char *buf, int len);
    int writen(const char *buf, int len);

    int recvn(std::string &s_recv, int length);
private:
    int _fd;
};

#endif
